package com.tanhua.server.service;

import com.tanhua.dubbo.api.db.BlackListApi;
import com.tanhua.server.interceptor.UserHolder;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class BlackListService {

    @DubboReference
    private BlackListApi blackListApi;

    public void removeBlackList(Long blackUserId) {
        blackListApi.removeBlack(UserHolder.getUserId(), blackUserId);
    }
}
